package cn.tansanqinger.dao.sql.operation;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import cn.tansanqinger.dao.sql.IOperationSqlDao;
import cn.tansanqinger.pojo.AccountOperationMessage;
/**
 * 对账号信息操作的真正类
 * @author C3H2
 *
 */
@Repository
public class OperationSqlDaoImpl {
	
	@Autowired
	private IOperationSqlDao sqlDao;
	
	/**
	 * 通过用户id查询全部关于用户的信息
	 * @param id
	 * @return
	 */
	public List<AccountOperationMessage> selectOperationMessageId(int id) {
		QueryWrapper<AccountOperationMessage> queryWrapper = new QueryWrapper<AccountOperationMessage>();
		queryWrapper.lambda().eq(AccountOperationMessage::getUid, id);
		return sqlDao.selectList(queryWrapper);
	}
}
